package com.ny20231079080.service.impl;

import com.ny20231079080.dao.ProductDao;
import com.ny20231079080.dao.Impl.ProductDaoImpl;
import com.ny20231079080.entity.Products;
import com.ny20231079080.service.ProductService;

import java.sql.SQLException;
import java.util.List;

public class ProductServiceImpl implements ProductService {
    private ProductDao productDao = new ProductDaoImpl();

    @Override
    public List<Products> findAllProducts() throws SQLException, ClassNotFoundException {
        return productDao.findAllProducts();
    }

}
